package com.toune.movie.base.myUtil;

import android.content.Context;
import android.content.res.Resources;

import com.toune.movie.R;


/**
 * Created by Administrator on 2018/5/9.
 */

public class ADFilterTool {
    public static boolean hasAd(Context context, String url){
        Resources res= context.getResources();
        String[]adUrls =res.getStringArray(R.array.ad_urls);
        for(String adUrl :adUrls){
            if(url.contains(adUrl)){
                return true;
            }
            if (url.indexOf(adUrl)!=-1){
                return true;
            }
        }
        return false;
    }
}